Skip to content

Conversation

deer-wmde
Copy link
Contributor

@deer-wmde deer-wmde commented Oct 10, 2025

As found out in https://phabricator.wikimedia.org/T406426#11263064
the RebuildQueryserviceData Command class had a not very useful signature, since we do not have any queue configured that is named 'manual-intervention'. As this blocked us quite I bit I propose to change the default value just to 'default'; this way we still can use a different queue if we want to, but it also works without specifying a named one. I guess another improvement could be to check the named queue actually exists, because currently it won't hint anything like this.

also see #710 (review)

use Traits\PageFetcher;

protected $signature = 'wbs-qs:rebuild {--domain=*} {--chunkSize=50} {--queueName=manual-intervention} {--sparqlUrlFormat=http://queryservice.default.svc.cluster.local:9999/bigdata/namespace/%s/sparql}';
protected $signature = 'wbs-qs:rebuild {--domain=*} {--chunkSize=50} {--queueName=default} {--sparqlUrlFormat=http://queryservice.default.svc.cluster.local:9999/bigdata/namespace/%s/sparql}';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: yeah, excellent spot and good prediction from 2 years ago that this would be a thing some fool (aka. Tom) would trip up on!

@tarrow tarrow merged commit 1562a97 into main Oct 16, 2025
6 checks passed
@tarrow tarrow deleted the de/fix-qs-command branch October 16, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants